<%@page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="x" uri="/soar-bx-tags"%>
<x:HeaderParts/>
<x:MainPartsTag>
<x:zone name="MainZone">
<x:Form action="auth/resicon.shtml">
<x:ParamsParts>
<x:TextField name="id" type="hidden" />
</x:ParamsParts>
<x:TabParts activeIndex="0" tabs="[图标管理:'']"></x:TabParts>
<x:SearchParts>
样式：<x:TextField name="searchIconClazz" />
分组：<x:SelectField name="searchIconGroup" refvalue="ICON_GROUP" dataList="icongroup" refname="ICON_GROUP" emptyName="选择分组"></x:SelectField>
</x:SearchParts>
<x:DataListParts pager="true">
	<thead>
		<tr>
			<td width="2%" align="center">序号</td>
			<td width="2%" align="center">
				<input type="checkbox" data-x="mult" data-target="ids">
			</td>
			<td width="5%" align="center">图标</td>
			<td width="10%" sort="T1.ICON_GROUP">分组</td>
			<td width="20%" sort="T1.ICON_CLAZZ">调用样式</td>
			<td width="5%" align="center">操作</td>
		</tr>
	</thead>
	<tbody>
		<s:iterator value="sysPageList" var="sys" status="st" id="sys">
			<tr>
				<td align="center"><s:property value="PAGE_ROW_NUM"/></td>
				<td align="center">
					<input type="checkbox" value="<s:property value="ID"/>_<s:property value="#st.index"/>" name="ids">
				</td>
				<td align="center" style="font-size:15px;"><span class="<s:property value="ICON_CLAZZ"/> fa-2x"> </span></td>
				<td><x:TextField name="iconGroups" value="#sys.ICON_GROUP" isMust="1" style="width:100%;" title="图标分组"/></td>
				<td><x:TextField name="iconClazzs" value="#sys.ICON_CLAZZ" isMust="1" style="width:100%;" title="图标样式"/></td>
				<td align="center">
				<input type="button" class="btn btn-danger btn-xs" value="删除" onclick="doDelete('${sys.ID }')">
				</td>
			</tr>
		</s:iterator>
	</tbody>
</x:DataListParts>
<x:ButtonsParts>
<x:Button role="primary" value="新增" onclick="X.Modal('auth/resicon!doNew.shtml','','','500px','223px','新增角色')"></x:Button>
<x:Button role="warning" value="更新" onclick="doSave()"></x:Button>
<x:Button role="danger" value="删除" onclick="doDeletePl()"></x:Button>
</x:ButtonsParts>
<x:JsParts fn="doDeletePl,doDelete,doSave">
function doSave()
{
	if(X.ChkSlt('ids')) 
	{
		X.Submit('doSave');
	}
}
function doDeletePl()
{
	if(X.ChkSlt('ids')) 
	{
		X.Alert("确定删除选中项？","X.Submit('doDelete')");
	}
}
function doDelete(id)
{
	$("#id").val(id);
	X.Alert('确定删除？',"X.Submit('doDelete')");
}
</x:JsParts>
</x:Form>
</x:zone>
</x:MainPartsTag>
